package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.queryParams.HospitalQueryParams;
import com.css.fxfzypg.modules.baseData.entity.HospitalEntity;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-19 10:20
 */
public interface HospitalRepository {


    HospitalEntity saveHospital(HospitalEntity hospitalEntity);

    HospitalEntity findHospitalById(Integer dataHospitalId);

    Page<HospitalEntity> getAllHospitalByParams(HospitalQueryParams queryParams);

    void deleteHospital(List<Integer> ids, Timestamp currentTimestamp);

    List<HospitalEntity> exportExcel();

    void importExcel(List<HospitalEntity> hospitalEntities);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
